package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("登录返回JSON类")
public class LoginRes {
    /**
     *主键
     * 作者id
     * isnull 1
     */
    @ApiModelProperty(value="作者id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String authorId;
    /**
     * 账号,即手机号
     */
    @ApiModelProperty(value = "账号即手机号", position = 2)
    private String nickname;
    /**
     * 账号,即手机号
     */
    @ApiModelProperty(value = "账号即手机号", position = 2)
    private String img;
    /**
     * 账号,即手机号
     */
    @ApiModelProperty(value = "账号即手机号", position = 2)
    private String token;

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "LoginRes{" +
                "authorId='" + authorId + '\'' +
                ", nickname='" + nickname + '\'' +
                ", img='" + img + '\'' +
                ", token='" + token + '\'' +
                '}';
    }
}
